<%@ page import="java.net.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="javax.xml.stream.*" %>
<%@ page import="pub.digur.util.*" %>

<%!
Status status = new Status();
%>
<%
XMLStreamReader parser = Parser.getParser(session, response);
%>

<html>
	<head>
		<title>Digur, profile</title>
	</head>
	
	<body>
		<!-- <h3>Digur, profile</h3> -->
		
		<form method="post" action="digur.update.jsp">
			<textarea rows="3" cols="66" name="content"></textarea>
			<input type="submit" value="Digu" />
		</form>
		
		<table border="0">
			<%
			while (parser.hasNext())
			{
				int event = parser.next();
				if (event == XMLStreamConstants.START_ELEMENT && parser.getLocalName().equals("status"))
				{
					Parser.getStatus(parser, status);
					%>
					<tr>
						<td><img src="<%= status.profileImage %>" alt_txt="<%= status.profileImage %>" /></td>
						<td><%= status.screenName %></td>
						<td><%= status.text %></td>
						<td><%= status.createdDate %></td>
					</tr>
					<%
				}
				else if (event == XMLStreamConstants.END_DOCUMENT)
				{
					parser.close();
				}
			}
			%>
		</table>
	</body>
</html>